﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Page</title>
    <link rel="stylesheet" type="text/css" media="screen" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="../css/mplayer.css" />
    <script type="text/javascript" src="../script/bar.js"></script>
    <script type="text/javascript" src="../script/testplayers.js"></script>
    <script type="text/javascript">
    <!--
    //var bizurl = 'http://biz.vsdn.tv380.com/playlive.php?';
    var bizurl = 'http://biz.vsdn.bigtv.com.cn/playlive.php?';
    var playurl = '';
    var channelname = '';
    function addLoadEvent(fn) {
    	var oldonload = window.onload;
    	if (typeof window.onload != 'function') {
    		window.onload = fn;
    	} else {
    		window.onload = function() {
    			if (oldonload) {
    				oldonload();
    			}
    			fn();
    		};
    	}
    }
    function goOn(url)
    {
    	mPlayerLive.Init(url,"740px","394px");
    	curPlayer = mPlayerLive;
    }
    function getplayurl(uuid)
    {
        parent.document.getElementById("debug").innerHTML +="uuid:"+uuid;
    	var playJS = document.createElement("script");
    	playJS.src=bizurl+uuid+"|js";
    	playJS.type='text/javascript';
    	playJS.defer=true;
    	document.getElementById("LPJS").appendChild(playJS);
    }
    function initPage(fn) {
    	testBarP.Init();
    	var tmp=parent.getvalue();
    	var tmpurl = tmp.substr(0, tmp.indexOf('|') );
    	channelname = decodeURI(tmp.substr(tmp.indexOf('|')+1 ));
   	if (tmpurl) {getplayurl(tmpurl);} //'5b63686e5d757569642e7765627c3430307c317c333030307c323339c1f72db9fec0fbb2a8ccd85b2f63686e5dVSDNSOOONERCOM00'
   	else{
   		document.getElementById("playing").style.className="playing";
   	}
    }
    function dropPage()
    {
    	try{curPlayer.mdivStop.onclick(); }catch(err){}
    	try{curPlayer.Delete();curPlayer = null;}catch(err){}
    }
    addLoadEvent(initPage);
    -->
    </script>
</head>
<body onbeforeunload="dropPage();">
<div class="mediaPlayer">
      <div class="playerBox">
        <!-- 加载时begin -->
        <div id="playing" class="loading">
          <div class="flash">
            <object type="application/x-shockwave-flash" data="../images/icon_loading.swf" width="320" height="80">
              <param name="movie" value="../images/icon_loading.swf"/>
              <param name="menu" value="false" />
            </object>
          </div>
        </div>
        <!--<div id="playing" class="loading">
        	<div class="instext">节目加载中，请稍候……</div>
        </div>-->
        <!-- 加载时end -->
        <!-- 安装插件后begin -->
        <div id="ready" class="ready"></div>
        <div id="stopdiv" class="ready" style="display:none;"></div>
        <!-- 安装插件后end -->
        <!-- 没有安装插件时end -->
      </div>
      <div id="ctrlPanel" class="ctrlPanel">
        <div id="track" class="track" style="display:none;">
          <div id="trackBar" class="trackBar" title="播放进度" style="left:0%;"></div>
          <div id="trackNow" class="trackNow" style="width:0%;"></div>
        </div>
        <div id="percent" class="percent" title="播放时间"> </div>
        <div class="clearFix"></div>
        <div id="play"  class="play" title="播放"></div>
        <div id="stop" class="stop" title="停止"></div>
        <div id="msg" class="msg"></div>
        <div class="volume">
          <div id="mute" class="mute" title="静音"></div>
          <div id="Div1" class="volumeTrack">
            <div id="Div2" class="volumeBar" title="拖动调节音量" style="left:60%;"></div>
            <div id="Div3" class="volumeNow" title="当前音量" style="width:60%;"></div>
          </div>
        </div>
        <div id="fullScreen" class="fullScreen" title="全屏播放"></div>
      </div>
    </div>
    <div id="LJS" ></div><div id="VJS" ></div><div id="LPJS" ></div><div id="VPJS" ></div>
  <script language="javascript" id="liveJS" src=""></script>
</body>
</html>
